package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.TravellingExpense;

public interface TravellingExpenseService {
	public void saveOrUpdateTravellingExpense(TravellingExpense travellingExpense) throws Exception;
	public void saveTravellingExpense(TravellingExpense travellingExpense) throws Exception;
	public void deleteTravellingExpense(TravellingExpense travellingExpense) throws Exception;
	// 根据交通费ID查询该交通费
	public TravellingExpense getTravellingExpenseByTravellingExpenseID(String teID) throws Exception;    
	// 查询所有交通费
	public List<TravellingExpense> getAllTravellingExpenseByCondition(String hql) throws Exception;
	// 查询所有交通费，分页显示
	public List<TravellingExpense> getAllTravellingExpenseByConditionByPage(String hql, int currentPage, int lineSize) throws Exception;
	// 交通费数
	public int getCountOfTravellingExpenseByCondition(String hql) throws Exception;

}
